@extends('host.custom.common.common')

@section('c-head')
    <script>
        var PAGE_DATA = {
            modalCategoryData: undefined,
            modalBrandData : undefined
        };
    </script>
@stop

@section('body')
        <!-- top_test -->
    <div id="top_test"> </div>

    <!-- web_logo_search -->
    <div id="web_logo_search"> </div>

    <!-- comm_nav -->
    <div id="comm_nav"> </div>


    <div class="com-w mt20">
        <div class="wrapper clearfix">
            <div  class="w220 mr20 comm-left-menu">
                <div class="menu-top-title">采购商中心</div>
                <div id="leftmenuitems">
                </div>
            </div>

            <div class="w960 comm-main">
                <div class="main-release clearfix">
                    <div class="main-release-nav">
                        您当前的位置：首页 > 采购商中心
                    </div>
                    <div class="main-release-title">
                        <span class="icons">

                        </span>
                        <span class="release-title-h3 f16">
                            公司资料
                        </span>
                    </div>
                    <div class="main-release-from">
                        <div id="commTabs_1" class="comm-tabs">
                            <div class="comm-tabs-head">
                                <div class="head-item current">基本信息</div>
                                <div class="head-item">修改密码</div>
                                <div class="head-item">修改电子邮箱</div>
                            </div>
                            <div class="comm-tabs-body">
                                @if(count($errors) > 0)
                                    @foreach ($errors->all() as $error)
                                        <div class="am-alert am-alert-warning" data-am-alert>
                                            <button type="button" class="am-close">&times;</button>
                                            <p>{{ $error }}</p>
                                        </div>
                                    @endforeach
                                @endif
                                <div class="body-item current">
                                    <form action="{{ route('account.purchaser.company') }}" id="mainform" method="post" enctype="multipart/form-data">
                                        {{ csrf_field() }}
                                        <div class="firm-info-list clearfix">
                                            <div class="comm-regist-info-line mt10 " style="margin-left:80px;">
                                                <div class="key-lbl">
                                                    公司名称：
                                                </div>
                                                <div class="input-info">
                                                    <div id="gsmc" style="line-height: 30px;"> </div>
                                                </div>
                                            </div>

                                            <div class="comm-regist-info-line mt10 " style="margin-left:80px;">
                                                <div class="key-lbl">
                                                    公司邮箱：
                                                </div>
                                                <div class="input-info ">
                                                    <div id="gsemail" style="line-height: 30px;"> </div>
                                                </div>
                                            </div>

                                            <div class="comm-regist-info-line mt10 " style="margin-left:80px;">
                                                <div class="key-lbl">
                                                    法人：
                                                </div>
                                                <div class="input-info clearfix">
                                                    <input type="text" id="legal" name="legal" style="float:left">
                                                </div>
                                            </div>

                                            <div class="comm-regist-info-line mt10 " style="margin-left:80px;">
                                                <div class="key-lbl">
                                                    性别：
                                                </div>
                                                <div class="input-info clearfix">
                                                    <label class="sex" style="float:left"><input type="radio" name="legal_gender" value="1" id="gender-1">先生</label>
                                                    <label class="sex" style="float:left"><input type="radio" name="legal_gender" value="0" id="gender-0">女士</label>
                                                </div>
                                            </div>

                                            <div class="comm-regist-info-line mt10 " style="margin-left:80px;">
                                                <div class="key-lbl">
                                                    法人身份证：
                                                </div>
                                                <div class="input-info">
                                                    <input type="text" id="identification_number" name="identification_number">
                                                </div>
                                            </div>

                                            <div class="comm-regist-info-line mt10 " style="margin-left:80px;">
                                                <div class="key-lbl">
                                                    公司地址：
                                                </div>
                                                <div class="input-info">
                                                    <select id="province" name="province_id" style="width:150px"> <option value="">请选择</option> </select>
                                                    <select id="city" name="city_id" style="width:150px"> <option value="">请选择</option> </select>
                                                    <select id="country" name="county_id" style="width:150px"> <option value="">请选择</option> </select>
                                                </div>
                                            </div>

                                            <div class="comm-regist-info-line mt10 " style="margin-left:80px;">
                                                <div class="key-lbl">
                                                    详细地址：
                                                </div>
                                                <div class="input-info">
                                                    <input type="text" id="address" name="address">
                                                </div>
                                            </div>

                                            <div class="comm-regist-info-line mt10 " style="margin-left:80px;">
                                                <div class="key-lbl">
                                                    联系人电话：
                                                </div>
                                                <div class="input-info">
                                                    <input type="text" id="contact_phone" name="contact_phone">
                                                </div>
                                            </div>

                                            <div class="comm-regist-info-line mt10 " style="margin-left:80px;">
                                                <div class="key-lbl">
                                                    联系人邮箱：
                                                </div>
                                                <div class="input-info">
                                                    <input type="text" id="email" name="contact_email">
                                                </div>
                                            </div>

                                            <div class="comm-regist-info-line mt10 " style="margin-left:80px;">
                                                <div class="key-lbl">
                                                    联系人姓名：
                                                </div>
                                                <div class="input-info">
                                                    <input type="text" id="contact_person" name="contact_person">
                                                </div>
                                            </div>

                                            <div class="comm-regist-info-line mt10 " style="margin-left:80px;">
                                                <div class="key-lbl">
                                                    性别：
                                                </div>
                                                <div class="input-info">

                                                    <span class="sex"><input type="radio" name="sex" value="0" id="sexsec">保密</span>
                                                    <span class="sex"><input type="radio" name="sex" value="1" id="sexsir">男</span>
                                                    <span class="sex"><input type="radio" name="sex" value="2" id="sexgirl">女</span>

                                                </div>
                                            </div>
                                            <div class="comm-regist-info-line mt10 " style="margin-left:80px;">
                                                <div class="key-lbl">
                                                    QQ：
                                                </div>
                                                <div class="input-info">
                                                    <input type="text" id="qq" name="contact_qq">
                                                </div>
                                            </div>

                                        </div>
                                        <div class="images-list clearfix" id="regist-elec-docs">
                                            <div class="box-list clearfix">
                                                <div class="box-list-image">
                                                    <img src="" />
                                                    <input type="file" style="display: none;" name="legal_identity_a" id="legal_identity_a" />
                                                </div>
                                                <div class="box-list-text">
                                                    身份证（正面）
                                                </div>
                                            </div>
                                            <div class="box-list clearfix">
                                                <div class="box-list-image">
                                                    <img src="" />
                                                    <input type="file" style="display: none;" name="legal_identity_b" id="legal_identity_b" />
                                                </div>
                                                <div class="box-list-text">
                                                    身份证（反面）
                                                </div>
                                            </div>
                                            <div class="box-list clearfix">
                                                <div class="box-list-image">
                                                    <img src="" />
                                                    <input type="file" style="display: none;" name="business_license" id="business_license" />
                                                </div>
                                                <div class="box-list-text">
                                                    营业执照副本
                                                </div>
                                            </div>



                                            <div class="tip mb20 wbb">
                                                提示：每张图片大小不超过2M，支撑bmp、jpg、gif、png、jpeg格式文件。
                                            </div>
                                        </div>
                                        <div class="keep-btn mb20">
                                            <a href="javascript:void(0)" class="btn btn-important btn-w200x48" id="zl-submit-btn">保存修改</a>
                                        </div>
                                    </form>
                                </div>
                                <div class="body-item">
                                    <form id="myform1" method="post" action="">
                                        <p>
                                            <label for="myname" class="pro-name">
                                                旧密码：
                                            </label>
                                            <!-- id和name最好同时写上 -->
                                            <input type="password" name="oldpwd" id="oldpwd" class="required" value="" />
                                        </p>
                                        <p>
                                            <label for="password" class="pro-name">
                                                新密码：
                                            </label>
                                            <input name="newpwd" id="newpwd" type="password" class="{required:true,minlength:5}" value="" />
                                        </p>
                                        <p>
                                            <label for="confirm_password" class="pro-name">
                                                确认新密码：
                                            </label>
                                            <input id="confirmpwd" name="confirmpwd" type="password" class="{required:true,minlength:5,equalTo:'#password'}" value="" />
                                        </p>
                                        <p style="margin-left: 315px;margin-top: 30px; margin-bottom: 66px;">
                                            <input class="w212x48 bgr btr b-r fff"  type="button" id="subPwd" value="提交修改" />
                                        </p>
                                    </form>
                                </div>
                                <div class="body-item">
                                    <form id="myform2" method="post" action="">
                                        <p>
                                            <label for="passwords" class="pro-name">
                                                您的密码：
                                            </label>
                                            <input id="pwd" name="pwd" type="password" class="{required:true,minlength:5}" />
                                        </p>
                                        <p>
                                            <label for="email" class="pro-name">
                                                新电子邮箱：
                                            </label>
                                            <input type="text" id="email" name="email" class="required email" />
                                        </p>
                                        <p style="margin-left: 315px;margin-top: 30px; margin-bottom: 66px;">
                                            <input class="w212x48 bgr btr b-r fff"  type="button" id="editEmail" value="提交修改" />
                                        </p>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- foot_nav -->
    <div id="foot_nav"> </div>

    <div id="bottom_main"></div>

    <!-- 省市区 -->
    <script type="text/template" id="area-option-templ">
        <option value="">请选择</option>
        <% _.each(obj, function(item){%>
        <option value="<%=item.code %>"><%=item.text %></option>
        <% }); %>
    </script>

    <script src="/assets/b2b/js/libs/jquery.validate.min.js"></script>
    <script src="/assets/b2b/js/libs/messages_zh.js"></script>
    <script src="/assets/b2b/js/libs/jquery.ajaxfileupload.js"></script>
    <script type="text/javascript" src="/assets/b2b/js/libs/dialog-min.js"></script>
    <script src="/assets/b2b/js/pageModules/buyer/B11.js"></script>
@stop